package vincent.com.layouttest.anim;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import vincent.com.layouttest.ColorStatusActivity;
import vincent.com.layouttest.R;

/**
 * Created by zhengwenchen on 2016/4/14.
 */
public class PropertyAnimSampleActivity extends ColorStatusActivity {

//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
////        setContentView(R.layout.activity_property_anim);
//    }

    @Override
    public View onCreateView(ViewGroup rootView) {
        return LayoutInflater.from(this).inflate(R.layout.activity_property_anim, rootView, true);
    }

    public void rotateAnimSample(View v){
        Intent intent = new Intent(this, RotateAimSampleActivity.class);
        startActivity(intent);
    }

    public void fadeAnimSample(View v){
        Intent intent = new Intent(this, FadeAnimSampleActivity.class);
        startActivity(intent);
    }

    public void rotateView(View v){
        Intent intent = new Intent(this, RotateViewActivity.class);
        startActivity(intent);
    }

    @Override
    public String getToolbarTitle() {
        return "Property Animation";
    }
}
